package customermanagesystem.demo.bean;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.text.ParseException;
import java.util.Date;

public class Customer {
    private int custId;
    private String custName;
    private String custIndustry;
    private String custLevel;
    private String custMobile;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private String custCreateTime;
    private String custPhoto;
    private String photoName;

    public Customer(){

    }

    @Override
        public String toString() {
            return "Customer{" +
                    "custId=" + custId +
                    ", custName='" + custName + '\'' +
                    ", custIndustry='" + custIndustry + '\'' +
                    ", custLevel='" + custLevel + '\'' +
                    ", custMobile='" + custMobile + '\'' +
                    ", custCreateTime='" + custCreateTime + '\'' +
                    ", custPhoto='" + custPhoto + '\''+
                    '}';
    }

    public String toStringload() {//下载用的toStringload方法
        return "" +
                 + custId +
                ", " + custName + '\'' +
                ", " + custIndustry + '\'' +
                ", " + custLevel + '\'' +
                ", " + custMobile + '\'' +
                ", " + custCreateTime + '\''
                ;
    }

    public int getCustId() {
        return custId;
    }

    public void setCustId(int custId) {
        this.custId = custId;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public String getCustIndustry() {
        return custIndustry;
    }

    public void setCustIndustry(String custIndustry) {
        this.custIndustry = custIndustry;
    }

    public String getCustLevel() {
        return custLevel;
    }

    public void setCustLevel(String custLevel) {
        this.custLevel = custLevel;
    }

    public String getCustMobile() {
        return custMobile;
    }

    public void setCustMobile(String custMobile) {
        this.custMobile = custMobile;
    }

    public String getCustCreateTime() {
        return custCreateTime;
    }

    public void setCustCreateTime(String custCreateTime) {
        this.custCreateTime = custCreateTime;
    }

    public String getCustPhoto() {
        return custPhoto;
    }

    public void setCustPhoto(String custPhoto) {
        this.custPhoto = custPhoto;
    }

    public String getPhotoName() {
        return photoName;
    }

    public void setPhotoName(String photoName) {
        this.photoName = photoName;
    }
    //    public Date getCustCreateTime(Date custCreateTime) throws ParseException {
//        this.custCreateTime= String.valueOf(custCreateTime);
//    }
}
